<h1><span class="reg_ico"></span><?= lang('label_pay_the_bill'); ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url('user/profile') ?>"><?= lang('label_profile') ?></a></li>
    <li><?= lang('label_pay_the_bill'); ?></li>
</ul>


<div class="page">
    <?php $this->load->view('template/default/invoicies/top') ?>

    <div style="overflow:hidden;">
    <form class="forms inside_1" action="<?php echo current_url() ?>" method="post">


        <div class="select">
            <label for="type"><?php echo lang('label_pay_type') ?> :</label>
            <samp>
                <select id="type" name="type">
                    <option value="bank"><?= lang('label_bank_transfare') ?></option>
                    <option value="wallet"><?= lang('label_from_wallet') ?></option>
                </select>
            </samp>
        </div>

        <div id="data"></div>
        

    </form>
    </div></div>
<script type="text/javascript">
    $(document).ready(function() {
        $('#type').change(function() {
            $('#data').load('<?= base_url("invoicies/paytypes/$invoice->must_pay") ?>/' + $(this).val())
        })
        $('#type').change()
    })
</script>